package main

import (
	"fmt"
	"reflect"
)

func main() {
	s := Student{Id: 1, Name: "咖啡色的羊驼"}
	t := reflect.TypeOf(s)
	//通过.Kind()来判断对比的值是否struct类型
	if t.Kind() == reflect.Struct {
		fmt.Println("bingo")
	}

	num := 1
	numType := reflect.TypeOf(num)

	if numType.Kind() == reflect.Int {
		fmt.Println("bingo")
	}
}
